<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>
*{
	color:white;
}
</style>
</head>
<body style="background:#676a6d;">
	<?php if(is_array($menus)): $i = 0; $__LIST__ = $menus;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($vo["parent_id"]) == "0"): ?><p>
			<ul>
			<?php echo ($vo["rule_name"]); ?>
				<?php if(is_array($menus)): $i = 0; $__LIST__ = $menus;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; if(($v["parent_id"]) == $vo["id"]): ?><li>
							<a href="../<?php echo ($v["controller_name"]); ?>/<?php echo ($v["action_name"]); ?>" target="content"><?php echo ($v["rule_name"]); ?></a>
						</li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</p><?php endif; endforeach; endif; else: echo "" ;endif; ?>
</body>
<script type="text/javascript">

	var as=document.getElementsByTagName('a');
	for (var i = 0; i < as.length; i++) {
		var a=as[i];
		a.addEventListener('click',(function(a){
			return function(){
				var href=a.getAttribute('href');
				if(a.getAttribute('target')){
					localStorage.setItem('last',href);
				}
			};
		})(a),false);
	}
</script>
</html>